﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraBars;

namespace Lola.Vista.Comunes
{
    public partial class xfrmMicrosenGalpon : DevExpress.XtraBars.Ribbon.RibbonForm
    {
        private string _sector = "";
        /// <summary>
        /// 
        /// </summary>
        /// <param name="Sector"></param>
        public xfrmMicrosenGalpon(String Sector)
        {
            this._sector = Sector;
            this.InitializeComponent();

            this.barSSector.Caption = _sector;
            /* 
             * List<Lola.ModeloVista.MicroVista> micros = new List<MicroVista> // = Lola.Control.Sistema.getInstanceSistema().ConsultarMicrosenSector(_sector, "retiro");
            this.gridControl1.DataSource = micros;
             */
            /*List<Lola.Datos.Micro> listadeMicros = new List<Datos.Micro>();
            Lola.Datos.Micro mi = new Lola.Datos.Micro();
            
            this.gridControl1.DataSource = listadeMicros;
            this.gridView1.PopulateColumns();
            */
        }
        /// <summary>
        /// Segun que sector sea ingresado se activan o no algunas opciones
        /// </summary>
        private void configurarControles()
        { 
        }
        /// <summary>
        /// 
        /// Privada para evitar instancias sin indicar sector
        /// </summary>
        private xfrmMicrosenGalpon()
        {
            InitializeComponent();
        }


        private void btnIncidencias_ItemClick(object sender, ItemClickEventArgs e)
        {
            xfrmIncidencias frm = new xfrmIncidencias(this._sector);
            frm.ShowDialog();
        }

    }
}